package composite;

/**
 * @author : DuJiabao
 * @Date : 2021/3/3 18:54
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
public class Client {
  public static void main(String[] args) {
    School school = new School("华南理工大学", "博学慎思 明辨笃行");
    College college = new College("电子与信息学院", "电子与信息学院");
    college.add(new Department("电子科学与技术", "电子科学与技术"));
    college.add(new Department("信息工程", "信息工程"));

    College college2 = new College("计算机与科学学院", "计算机与科学学院");
    college2.add(new Department("计算机科学与技术", "计算机科学与技术"));
    college2.add(new Department("网络工程", "网络工程"));

    school.add(college);
    school.add(college2);

    school.print();

  }
}
